/*
 * @Author: zhangweinan
 * @Date: 2022-11-16 09:45:46
 * @LastEditors: zhangweinan
 * @LastEditTime: 2023-02-16 15:27:14
 * @Description: file content
 * @FilePath: \front-end-of-task-center\src\api\bpm\taskAssignRule.js
 */
import request from '@/utils/request'

export function getTaskAssignRuleList(query) {
  return request({
    url: '/bpm/task-assign-rule/list',
    method: 'get',
    params: query
  })
}

export function createTaskAssignRule(data) {
  return request({
    url: '/bpm/task-assign-rule/create',
    method: 'post',
    data: data
  })
}

export function updateTaskAssignRule(data) {
  return request({
    url: '/bpm/task-assign-rule/update',
    method: 'put',
    data: data
  })
}
//批量保存审批按钮
export function saveBatchBtnConfig(data) {
  return request({
    url: '/bpm/act-btn/saveBatchBtnConfig',
    method: 'post',
    data: data
  })
}
//批量保存时间设置
export function saveBatchTimeConfig(data) {
  return request({
    url: '/bpm/dead-time/saveBatchTimeConfig',
    method: 'post',
    data: data
  })
}
//审批人保存处理
export function saveApprovalRule(data) {
  return request({
    url: '/bpm/task-assign-rule/save',
    method: 'put',
    data: data
  })
}
//审批人批量保存
export function saveBatchApprovalRule(data) {
  return request({
    url: 'bpm/task-assign-rule/saveBatch',
    method: 'put',
    data: data
  })
}

